package com.itheima.train.manager;

import com.itheima.train.manager.domain.TbRidingPlanDate;
import com.itheima.train.manager.service.TbRidingPlanDateService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

import java.util.UUID;

@SpringBootApplication
public class TrainManagerApplication {

    public static void main(String[] args) {

        // 获取到spring容器
        ConfigurableApplicationContext applicationContext = SpringApplication.run(TrainManagerApplication.class, args);// 启动工程
        TbRidingPlanDateService bean = applicationContext.getBean(TbRidingPlanDateService.class);
        bean.genRidingPlanDate("2020-06-01");

    }

}
